package com.aliang.shopping.mapper;

import com.aliang.shopping.model.dto.common.PageDTO;
import com.aliang.shopping.model.po.Admin;
import com.aliang.shopping.model.vo.chat.SimpleContactVO;
import com.aliang.shopping.model.vo.admin.AdminVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Param;
import org.mybatis.spring.annotation.MapperScan;

import java.util.List;
import java.util.Set;

/**
 * @author ShiBaLover
 * @description 针对表【admin】的数据库操作Mapper
 * @createDate 2024-10-09 09:34:18
 */
@MapperScan
public interface AdminMapper extends BaseMapper<Admin> {

    IPage<AdminVO> getPage(IPage<AdminVO> page, @Param("do") PageDTO pageDTO);

    List<AdminVO> getVoList(@Param("do") PageDTO pageDTO);

    List<SimpleContactVO> getAvatarById(@Param("ids") Set<Long> userIds);

    List<SimpleContactVO> getNickNameById(@Param("ids") List<Long> contactIds);
    List<SimpleContactVO> getSimpleContactById(@Param("ids") List<Long> contactIds);
}




